package edu.drexel.info636.assignments.main;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import edu.drexe.info636.assignments.configs.CliRecordManagerConfig;
import edu.drexel.info636.assignments.controllers.MainController;

/**
 * The main entry point for the program.
 * 
 * @author Chase Miller
 * 
 */
public class Main {

    /**
     * The main method for the application. Via Spring, loads the configuration
     * for this application based on @see CliRecordManagerConfig and starts the
     * MainController.
     * 
     * @param args
     */
    public static void main(String[] args) {
	try (AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(CliRecordManagerConfig.class)) {
	    MainController main = context.getBean(MainController.class);
	    main.start();
	}
    }
}
